package com.xuecheng.content.services.service;

import com.xuecheng.content.model.dto.CoursePreviewDto;
import com.xuecheng.content.model.po.CoursePublish;

/**
 * @Author:王亚栋
 * @Date:2023/8/6 17:29
 * @Version:1.0
 * 课程发布相关的接口
 */
public interface CoursePublishService {

    /**
     * 预览课程
     * @param courseId  课程Id
     * @return
     */
    public CoursePreviewDto getCoursePreviewInfo(Long courseId);

    /**
     * 提交审核
     * @param companyId 机构Id
     * @param courseId  课程Id
     */
    public void commitAudit(Long companyId,Long courseId);

    /**
     * 根据课程Id查询课程发布信息
     * @param courseId
     * @return
     */
    CoursePublish getCoursePublish(Long courseId);

    /**
     * 课程发布接口
     * @param companyId 机构Id
     * @param courseId  课程Id
     */
    void publish(Long companyId,Long courseId);
}
